﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Windows.Forms.Design;

namespace BADDGUI.Controls
{
    [ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.StatusStrip)]
    public partial class BLCStatusCheckBox : BLCToolStripControlHost
    {
        private System.ComponentModel.IContainer components = null;

        public BLCStatusCheckBox() : base(new CheckBox())
        {
            components = new System.ComponentModel.Container();
            this.Margin = new Padding(5, 0, 0, 0);
        }

        public BLCStatusCheckBox(IContainer container) : base(new CheckBox())
        {
            container.Add(this);

            components = new System.ComponentModel.Container();
        }

        public bool Checked 
        {
            get
            {
                return ((CheckBox)base.Control).Checked;
            }
            set { ((CheckBox)base.Control).Checked = value; } 
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
    }
}
